﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B39 RID: 2873
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionRewardScNotify : IMessage<MissionRewardScNotify>, IMessage, IEquatable<MissionRewardScNotify>, IDeepCloneable<MissionRewardScNotify>, IBufferMessage
	{
		// Token: 0x17002440 RID: 9280
		// (get) Token: 0x06008081 RID: 32897 RVA: 0x00156C2F File Offset: 0x00154E2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionRewardScNotify> Parser
		{
			get
			{
				return MissionRewardScNotify._parser;
			}
		}

		// Token: 0x17002441 RID: 9281
		// (get) Token: 0x06008082 RID: 32898 RVA: 0x00156C36 File Offset: 0x00154E36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionRewardScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002442 RID: 9282
		// (get) Token: 0x06008083 RID: 32899 RVA: 0x00156C48 File Offset: 0x00154E48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionRewardScNotify.Descriptor;
			}
		}

		// Token: 0x06008084 RID: 32900 RVA: 0x00156C4F File Offset: 0x00154E4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionRewardScNotify()
		{
		}

		// Token: 0x06008085 RID: 32901 RVA: 0x00156C58 File Offset: 0x00154E58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionRewardScNotify(MissionRewardScNotify other) : this()
		{
			this.subMissionId_ = other.subMissionId_;
			this.mainMissionId_ = other.mainMissionId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008086 RID: 32902 RVA: 0x00156CB0 File Offset: 0x00154EB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionRewardScNotify Clone()
		{
			return new MissionRewardScNotify(this);
		}

		// Token: 0x17002443 RID: 9283
		// (get) Token: 0x06008087 RID: 32903 RVA: 0x00156CB8 File Offset: 0x00154EB8
		// (set) Token: 0x06008088 RID: 32904 RVA: 0x00156CC0 File Offset: 0x00154EC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubMissionId
		{
			get
			{
				return this.subMissionId_;
			}
			set
			{
				this.subMissionId_ = value;
			}
		}

		// Token: 0x17002444 RID: 9284
		// (get) Token: 0x06008089 RID: 32905 RVA: 0x00156CC9 File Offset: 0x00154EC9
		// (set) Token: 0x0600808A RID: 32906 RVA: 0x00156CD1 File Offset: 0x00154ED1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x17002445 RID: 9285
		// (get) Token: 0x0600808B RID: 32907 RVA: 0x00156CDA File Offset: 0x00154EDA
		// (set) Token: 0x0600808C RID: 32908 RVA: 0x00156CE2 File Offset: 0x00154EE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600808D RID: 32909 RVA: 0x00156CEB File Offset: 0x00154EEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionRewardScNotify);
		}

		// Token: 0x0600808E RID: 32910 RVA: 0x00156CFC File Offset: 0x00154EFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionRewardScNotify other)
		{
			return other != null && (other == this || (this.SubMissionId == other.SubMissionId && this.MainMissionId == other.MainMissionId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600808F RID: 32911 RVA: 0x00156D5C File Offset: 0x00154F5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SubMissionId != 0U)
			{
				num ^= this.SubMissionId.GetHashCode();
			}
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008090 RID: 32912 RVA: 0x00156DCA File Offset: 0x00154FCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008091 RID: 32913 RVA: 0x00156DD2 File Offset: 0x00154FD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008092 RID: 32914 RVA: 0x00156DDC File Offset: 0x00154FDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			if (this.SubMissionId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.SubMissionId);
			}
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008093 RID: 32915 RVA: 0x00156E54 File Offset: 0x00155054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SubMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubMissionId);
			}
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008094 RID: 32916 RVA: 0x00156EC4 File Offset: 0x001550C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionRewardScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SubMissionId != 0U)
			{
				this.SubMissionId = other.SubMissionId;
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008095 RID: 32917 RVA: 0x00156F40 File Offset: 0x00155140
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008096 RID: 32918 RVA: 0x00156F4C File Offset: 0x0015514C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 88U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MainMissionId = input.ReadUInt32();
						}
					}
					else
					{
						this.SubMissionId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x04003127 RID: 12583
		private static readonly MessageParser<MissionRewardScNotify> _parser = new MessageParser<MissionRewardScNotify>(() => new MissionRewardScNotify());

		// Token: 0x04003128 RID: 12584
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003129 RID: 12585
		public const int SubMissionIdFieldNumber = 11;

		// Token: 0x0400312A RID: 12586
		private uint subMissionId_;

		// Token: 0x0400312B RID: 12587
		public const int MainMissionIdFieldNumber = 12;

		// Token: 0x0400312C RID: 12588
		private uint mainMissionId_;

		// Token: 0x0400312D RID: 12589
		public const int RewardFieldNumber = 5;

		// Token: 0x0400312E RID: 12590
		private ItemList reward_;
	}
}
